#pragma once

#include "tcservercore_global.h"

#include <QList>
#include "Type/NewsGroup.h"
#include <tuple>

namespace TCServer
{
	namespace Store
	{
		class TCSERVERCORE_EXPORT NewsGroupTable
		{
		public:
			static quint64 insert(const Type::NewsGroup &newsGroup);
			static void update(const Type::NewsGroup &newsGroup);
			static void remove(quint64 id);
			static QList<Type::NewsGroup> queryAll();
		};
	}
}
